//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.come.mouslisten;

import org.come.Frame.ZhuFrame;
import org.come.Jpanel.RankingListJpanel;
import org.come.Jpanel.mountJPanel;
import org.come.bean.LoginResult;
import org.come.until.FormsManagement;

import javax.swing.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;

public class PhListMouslisten implements MouseListener, MouseMotionListener {
    private JList<LoginResult> listPh;

    public PhListMouslisten(JList<LoginResult> listpet) {
        this.listPh = listpet;
    }

    public void mouseClicked(MouseEvent e) {
        if (e.isMetaDown()) {
            FormsManagement.HideForm(6);
        }

    }

    public void mousePressed(MouseEvent e) {
    }

    public void mouseReleased(MouseEvent e) {
    }

    public void mouseEntered(MouseEvent e) {
    }

    public void mouseExited(MouseEvent e) {
        ZhuFrame.getZhuJpanel().pettext();
        mountJPanel.idx = -1;
    }

    public void mouseDragged(MouseEvent e) {
    }

    public void mouseMoved(MouseEvent e) {
        if (e.getY() / 28 < this.listPh.getModel().getSize()) {
            RankingListJpanel.idx2 = this.listPh.locationToIndex(e.getPoint());
        }
    }
}
